#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START gdbm

reset_mtime gdbm gdbm/configure.ac
rm -rf build/gdbm
mkdir -p build/gdbm
cd build/gdbm
cat > config.cache << EOF
ac_cv_func_mmap_fixed_mapped=yes
EOF
../../gdbm/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	--disable-rpath \
	--disable-silent-rules \
	--disable-libgdbm-compat \
	--without-readline \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/gdbm

# RECIPE END gdbm
